const dbUtils = require('./../utils/db-util')

const memorial = {

  async create ( model ) {
    let result = await dbUtils.insertData( 'memorial_date', model )
    return result
  },

  async get(options ) {
    let _sql = `
    SELECT * from memorial
    where couple_id="${options.couple_id}" or couple_id=0
    `
    let result = await dbUtils.query( _sql )
    return result
  },
}


module.exports = memorial
